import {
    center,
    grid,
    search,
} from '@/css/VueCss.module.scss' ;

export default {
    // title: '转出记录',
    items: [{
        region: 'center',
        class: center,
        layout: 'vertical',
        items: [{
            items: [{
                id: 'search',
                class: search,
                widget: 'search-datesearch',
                times: [{
                    label: '今日',
                    value: 'today'
                }, {
                    label: '昨日',
                    value: 'yesterday'
                },{
                    label: '近7日',
                    value: 'lately7'
                },{
                    label: '近30日',
                    value: 'lately30'
                }],
                rangeTimes: true,
                text:{
                    field: 'keywords',
                    placeholder: '请输入搜索关键词'
                },
                onSearch: [{
                    action:'grid-load',
                    target:'$widgets.grid',
                    params: {
                        type: 1,
                        page_size: '$widgets.grid.pageSize',
                        keywords: '$params.keywords',
                        keywordsBy: '"corporate_name"'
                    }
                }]
            }]
        },{
            id:'grid',
            class: grid,
            widget:'grid',
            service: 'customers_pool/temporary/transfer_out_record/list',
            pageSize:20,
            columns:[{
                prop:'uuid',
                label:'记录标识',
                width: 140
            },{
                prop:'corporate_name',
                label:'客户(公司)',
                minWidth: 220
            },{
                prop:'operator_uuid',
                label:'操作人',
                width: 160
            },{
                prop:'create_time',
                label:'转出时间',
                width: 180
            }],
            flex:true,
        }]
    }]
} ;
